package com.ruoyi.center.demo.api.dto;

import com.ruoyi.common.core.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
 * demo dto
 *
 * @author ruoyi
 * @date 2022-02-15 10:59:29
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("demo dto")
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class DemoDto extends BaseDto implements Serializable {

    private static final long serialVersionUID = -3427519984044789096L;
    /** 用户编码 */
    @ApiModelProperty(value = "用户编号", example = "12345678")
    @NotNull(message = "用户编码不能为空")
    private String userCode;
    /** 用户姓名 */
    @NotNull(message = "用户姓名不能为空")
    @ApiModelProperty(value = "用户姓名", example = "ruoyi")
    private String userName;
}
